package com.qk.management.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qk.dto.course.CourseDTO;
import com.qk.entity.Course;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

/**
 * @Author: chouh
 * @DateTime: 2025/10/11 16:23
 * @Description:
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    List<Course> queryCoursesBySubject(String subject);

    List<Course> selectAllCourses();

    void updateCourse(Course course);

    void insertCourse(Course course);

    void deleteCourse(Integer id);

    List<Course> selectByPage(CourseDTO courseDTO);
}
